/**
 * Copyright © 2016-2022 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import '../../../../../scss/constants';

:host {
  display: flex;
  flex: 1 1 0;
  .tb-login-content {
    background-image: url('../../../../../static/img/login/login_bg.png');
    background-size: cover;
    .login-title {
      margin: 91px auto 0;
      width: 100%;
      .title-ZH {
        width: 100%;
        font-size: 52px;
        font-family: PingFang SC, PingFang SC-Bold;
        font-weight: 700;
        text-align: center;
        color: #ff993c;
        letter-spacing: 8px;
        margin-bottom: 30px;
      }
      .title-EN {
        width: 100%;
        text-align: center;
        letter-spacing: 3px;
        font-size: 14px;
        color: #999999;
      }
    }
    .tb-login-form {
      @media #{$mat-gt-xs} {
        // width: 550px !important;
      }

      .forgot-password {
        padding: 0 0.5em 1em;
        width: 424px;
        color: #999999;
        .tb-reset-password {
          padding: 0 6px;
        }
      }

      .tb-action-button {
        padding: 20px 0 16px;
      }
    }

    .oauth-container {
      padding: 0;

      .container-divider {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        .line {
          flex: 1;
        }
        .mat-divider-horizontal {
          position: relative;
        }

        .text {
          padding-right: 10px;
          padding-left: 10px;
        }
      }

      .material-icons {
        width: 20px;
        min-width: 20px;
      }

      a.login-with-button {
        color: rgba(black, 0.87);

        &:hover {
          border-bottom: 0;
        }

        .icon {
          height: 20px;
          width: 20px;
          vertical-align: sub;
        }
      }

      .centered ::ng-deep .mat-button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    //自定义样式
    .login-card {
      width: 461px;
      height: 530px;
      background: rgba(255, 255, 255, 0.00);
      border: 3px solid #ff993c;
      border-radius: 5px;
      box-shadow: -3.54px 3.54px 4.9px 0.1px rgba(255, 189, 129, 0.10);
      // margin-top: 100px;
      // margin-left: 56%;
      position: absolute;
      top: 28%;
      margin-left: 59%;
      .login-logo {
        width: 225px;
        height: 68px;
        background-image: url('../../../../../static/img/login/login-logo.png');
        background-size: 100% 100%;
        // margin-top: 42px;
        margin-left: 36px;
      }

      ::ng-deep {
        .mat-form-field-appearance-legacy .mat-form-field-wrapper {
          padding-bottom: 0 !important;
        }
        .mat-form-field-appearance-legacy .mat-form-field-underline {
          bottom: 0;
        }
        .mat-form-field-prefix,
        .mat-form-field-suffix {
          color: #333333;
        }
        .mat-form-field-underline {
          background-color: #cccccc !important;
        }
        .mat-input-element {
          caret-color: #000 !important;
          color: #000 !important;
        }

      }
    }
    // .login-card
  }
}
tb-dark .mat-app-background, .tb-dark.mat-app-background {
  background-color: #fffbf6;
  color: white;
}
// background-color: #fffbf6


